/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.pconline.activity.domain;

import cn.pconline.activity.repository.GenericRepository;
import java.util.Date;

/**
 *
 * @author pc
 */
public class Admin {
    private long adminId;
    private String account;
    private Date createAt;

    transient public static final Admin EMPTY_ADMIN = new Admin();

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public long getAdminId() {
        return adminId;
    }

    public void setAdminId(long adminId) {
        this.adminId = adminId;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public static Admin find(long id) {
        return cn.pconline.activity.util.EnvUtils.getEnv().
                getBean(GenericRepository.class).find(id, Admin.class);
    }
    
}
